package com.cloudcc.mobile.weight.webview;

import android.webkit.WebView;
import android.webkit.WebViewClient;

import com.cloudcc.mobile.manager.RunTimeManager;

/**
 * @Description: WebViewClient 处理
 * @author wangzhiqiang
 * @date 2015-12-4 上午11:10:14
 * 
 */
public class CloudccWebViewClient extends WebViewClient {

private String mEns = RunTimeManager.getInstance().getlanguage();
	@Override
	public void onReceivedSslError(WebView view,
			android.webkit.SslErrorHandler handler,
			android.net.http.SslError error) {
		handler.proceed();
	};

	@Override
	public void onReceivedError(WebView view, int errorCode,
			String description, String failingUrl) {
		

if ("en".equals(mEns)) {
	view.loadUrl("file:///android_asset/html/en_error.html");
	}else{
		view.loadUrl("file:///android_asset/html/error.html");
}
	}

}
